﻿<UserControl x:Class="SqLiteEditor.Templates.TBrowsWindow"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:editor="http://icsharpcode.net/sharpdevelop/avalonedit"
             xmlns:ExtendedGridControl="clr-namespace:ExtendedGrid.ExtendedGridControl;assembly=ExtendedGrid"
             xmlns:ExtendedColumn="clr-namespace:ExtendedGrid.ExtendedColumn;assembly=ExtendedGrid"
             xmlns:WpfToolkit="clr-namespace:ExtendedGrid.Microsoft.Windows.Controls;assembly=ExtendedGrid"
             xmlns:local="clr-namespace:SqLiteEditor"
             xmlns:temp="clr-namespace:SqLiteEditor.Templates"
             mc:Ignorable="d" 
             xmlns:avalonDock="http://avalondock.codeplex.com" 
             d:DesignWidth="800" d:DesignHeight="600" >

    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="50*"/>
            <RowDefinition Height="4"/>
            <RowDefinition Height="50*"/>
        </Grid.RowDefinitions>

        <editor:TextEditor x:Name="QueryEdittor" Grid.Row="0" FontFamily="Consolas" ShowLineNumbers="True" WordWrap="True" />

        <GridSplitter Grid.Row="1" Background="Black" HorizontalAlignment="Stretch" VerticalAlignment="Center" Height="3" />

        <TabControl Grid.Row="2">
            <TabItem Header="Result">
                <!--<DataGrid x:Name="SqliteDataGrid" RowHeaderWidth="20" FontFamily="/SqLiteEditor;component/Resources/Fonts/#B Nazanin" FontSize="14" AutoGenerateColumns="True" FlowDirection="RightToLeft" RowHeight="25" IsReadOnly="True"/>-->

                <ExtendedGridControl:ExtendedDataGrid  x:Name="SqliteDataGrid" FlowDirection="RightToLeft" Height="Auto" FontSize="18" FontFamily="/SqLiteEditor;component/Resources/Fonts/#B Nazanin"  VerticalAlignment="Top" ItemsSource="{Binding SourceTable}"   RowHeaderWidth="17"  AutoGenerateColumns="True" IsReadOnly="True"   HideColumnChooser="False" 
                                                       IsSynchronizedWithCurrentItem="True"  SelectionMode="Extended" SelectionUnit="CellOrRowHeader" ShowRowNumber="True">

                </ExtendedGridControl:ExtendedDataGrid>
               
            </TabItem>
            <TabItem Header="Messages">
                <editor:TextEditor x:Name="MessageEdittor" Grid.Row="0" FontFamily="Consolas" ShowLineNumbers="True" WordWrap="True" />
                     
            
            </TabItem>
        </TabControl>
    </Grid>
</UserControl>
